﻿namespace CSharpPro._10月20作业;

public class Student
{
    private string name;
    private int age;
    private string gender;
    private string address;

    public Student(string name, int age, string gender, string address)
    {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.address = address;
    }

    public string GetName()
    {
        return name;
    }

    public int GetAge()
    {
        return age;
    }

    public string GetGender()
    {
        return gender;
    }

    public string GetAddress()
    {
        return address;
    }

    public void SetName(string name)
    {
        this.name = name;
    }

    public void SetAge(int age)
    {
        this.age = age;
    }

    public void SetGender(string gender)
    {
        this.gender = gender;
    }

    public void SetAddress(string address)
    {
        this.address = address;
    }
}